package com.jianganming.mediator;

public class ServiceB implements IService {
    @Override
    public void doAction() {
        System.out.println("B服务调用");
        IService serviceA = Registry.getInstance().getObject("serviceA");
        IService serviceC = Registry.getInstance().getObject("serviceC");
        serviceA.submit();
        serviceC.submit();

    }

    @Override
    public void submit() {
        System.out.println("B服务提交");
    }
}
